package com.information.manage.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.information.manage.basic.model.entity.SysMenuDO;
import com.information.manage.basic.model.query.AddMenuQuery;
import com.information.manage.basic.model.query.UpdateMenuQuery;
import com.information.manage.basic.common.result.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SysMenuService extends IService<SysMenuDO> {

    /**
     * 添加菜单
     * @param addMenuQuery
     * @return
     */
    Result<Integer> addMenu(HttpServletRequest request,AddMenuQuery addMenuQuery);

    /**
     * 删除菜单
     * @param menuIds
     * @return
     */
    Boolean deleteMenu(List<Integer> menuIds);

    /**
     * 更新菜单
     * @param updateMenuQuery
     * @return
     */
    Result<Boolean> updateMenu(UpdateMenuQuery updateMenuQuery);

}
